package com.bdilab.iot.dto.userdto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import java.util.List;

/**
 * @author WangNing
 * @version 1.0
 * @date 2020/8/2 10:44
 */
@Data
@ApiModel
public class UpdateUserDto {

    @ApiModelProperty(value = "电话号码", required = false)
    private String phoneNum;

    @ApiModelProperty(value = "项目ID", required = false)
    @Min(value = 1L, message = "项目ID不合法")
    private Long project;

    @ApiModelProperty(value = "用户更新后的角色", required = false)
    private List<Long> roles;

    @ApiModelProperty(value = "启用用户", required = false)
    private Boolean active;
}
